/* ============================================
   本地有约 - 全局样式表
   高级现代化设计 - 流畅动画与渐变配色
============================================ */

:root {
    /* 主色调 - 多彩渐变 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    
    /* 功能色 */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* 中性色 */
    --light-bg: #f8fafc;
    --lighter-bg: #ffffff;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
    
    /* 渐变色彩 - 更丰富多样 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #06b6d4 100%);
    --gradient-sunset: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-forest: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-cosmic: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-aurora: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    
    /* 玻璃态效果 */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* 阴影系统 - 更柔和立体 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px 0 rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 20px 48px 0 rgba(0, 0, 0, 0.2);
    
    /* 彩色阴影 */
    --shadow-primary: 0 8px 24px 0 rgba(99, 102, 241, 0.3);
    --shadow-purple: 0 8px 24px 0 rgba(139, 92, 246, 0.3);
    --shadow-pink: 0 8px 24px 0 rgba(236, 72, 153, 0.3);
    
    /* 动画时长 */
    --transition-fast: 0.15s;
    --transition-base: 0.3s;
    --transition-slow: 0.5s;
    --transition-slower: 0.8s;
}

/* ============================================
   全局样式
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景动画装饰 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* ============================================
   导航栏样式 - 玻璃态效果
============================================ */
.navbar-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all var(--transition-base) ease;
    animation: slideDown 0.6s ease-out;
}

.navbar-custom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.navbar-custom:hover::before {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base) ease;
    animation: gradientShift 3s ease infinite;
}

.navbar-custom .navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.navbar-custom .navbar-brand i {
    font-size: 1.75rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.navbar-custom .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem;
    transition: all var(--transition-base) ease;
    position: relative;
    overflow: hidden;
}

.navbar-custom .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-cosmic);
    opacity: 0.1;
    transition: left var(--transition-base) ease;
    z-index: -1;
}

.navbar-custom .nav-link:hover::before {
    left: 0;
}

.navbar-custom .nav-link:hover {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-custom .nav-link.active {
    background: var(--gradient-cosmic);
    color: white !important;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.navbar-custom .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}

/* ============================================
   卡片样式 - 玻璃态与渐变
============================================ */
.card-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base) ease;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.card-custom:hover::before {
    left: 100%;
}

.card-custom:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(139, 92, 246, 0.3);
}

.card-custom .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.card-custom:hover .card-img-top {
    transform: scale(1.1) rotate(2deg);
}

.card-custom .card-header {
    background: var(--gradient-cosmic);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-custom .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   按钮样式 - 动态渐变与涟漪效果
============================================ */
.btn-gradient-primary {
    background: var(--gradient-cosmic);
    background-size: 200% 200%;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all var(--transition-base) ease;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    animation: gradientMove 3s ease infinite;
}

.btn-gradient-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-gradient-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-gradient-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-gradient-primary:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-gradient-success {
    background: var(--gradient-forest);
    background-size: 200% 200%;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all var(--transition-base) ease;
    box-shadow: 0 8px 24px 0 rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientMove 3s ease infinite;
}

.btn-gradient-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px 0 rgba(16, 185, 129, 0.4);
    color: white;
}

/* ============================================
   活动卡片 - 3D效果与炫彩边框
============================================ */
.activity-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base) ease;
    height: 100%;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.activity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    padding: 2px;
    background: var(--gradient-cosmic);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base) ease;
    pointer-events: none;
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: var(--shadow-2xl);
}

.activity-card .activity-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-card .activity-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
    z-index: 1;
}

.activity-card:hover .activity-image::before {
    opacity: 1;
}

.activity-card .activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow) ease;
    display: block;
}

.activity-card:hover .activity-image img {
    transform: scale(1.15) rotate(2deg);
}

/* 确保图片始终填充容器，无论原始比例 */
.activity-card .activity-image img[src=""],
.activity-card .activity-image img:not([src]) {
    display: none;
}

/* 占位图样式（无图片时） */
.activity-card .activity-image:not(:has(img)) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-card .activity-image:not(:has(img))::after {
    content: '暂无图片';
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    z-index: 2;
}

.activity-card .activity-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-cosmic);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: bounceIn 0.6s ease-out 0.3s both;
    backdrop-filter: blur(8px);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.activity-card .activity-body {
    padding: 1.25rem;
    position: relative;
}

.activity-card .activity-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all var(--transition-base) ease;
}

.activity-card:hover .activity-title {
    transform: translateX(5px);
}

.activity-card .activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.activity-card .activity-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.activity-card .activity-info-item i {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 20px;
    transition: transform var(--transition-base) ease;
}

.activity-card:hover .activity-info-item i {
    transform: scale(1.2) rotate(10deg);
}

.activity-card .activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   表单样式 - 玻璃态输入框
============================================ */
.form-control-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all var(--transition-base) ease;
    position: relative;
}

.form-control-custom:focus {
    border-color: transparent;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), var(--shadow-md);
    transform: translateY(-2px);
    outline: none;
}

.form-control-custom:hover {
    border-color: var(--primary-light);
}

.form-label-custom {
    font-weight: 600;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* ============================================
   用户头像
============================================ */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.user-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

/* ============================================
   标签样式 - 渐变边框
============================================ */
.tag-custom {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-cosmic);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-base) ease;
    position: relative;
    overflow: hidden;
}

.tag-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
    border-radius: 2rem;
}

.tag-custom span {
    position: relative;
    z-index: 1;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag-custom:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.tag-custom:hover::before {
    opacity: 0.1;
}

.tag-custom:hover span {
    -webkit-text-fill-color: white;
}

/* ============================================
   加载动画 - 多彩旋转
============================================ */
.loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), var(--secondary-color), var(--accent-color), transparent);
    animation: spin 1.5s linear infinite;
    margin: 2rem auto;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: white;
    border-radius: 50%;
}

.loader::after {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), var(--secondary-color), var(--accent-color), transparent);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   页面头部 - 动态渐变背景
============================================ */
.page-header {
    background: var(--gradient-cosmic);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.page-header h1 i {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 1;
}

/* ============================================
   统计卡片 - 动态数字与炫彩图标
============================================ */
.stat-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-base) ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card .stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--gradient-cosmic);
    color: white;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-base) ease;
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
}

.stat-card .stat-content {
    position: relative;
    z-index: 1;
}

.stat-card .stat-content h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card .stat-content p {
    color: var(--gray-text);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   评论样式
============================================ */
.comment-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-text);
}

.comment-time {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.comment-content {
    color: var(--dark-text);
    line-height: 1.6;
}

/* ============================================
   响应式设计
============================================ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .activity-card .activity-image {
        height: 180px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   动画效果 - 多样式过渡
============================================ */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 滚动触发动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   通知徽章 - 跳动效果
============================================ */
.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid white;
}

/* ============================================
   空状态 - 动画提示
============================================ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    animation: fadeIn 0.8s ease-out;
}

.empty-state i {
    font-size: 6rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.empty-state h3 {
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--gray-text);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   筛选器样式 - 现代化圆形按钮
============================================ */
.filter-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tab {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    padding: 0.65rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all var(--transition-base) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: all var(--transition-base) ease;
    z-index: 0;
}

.filter-tab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.filter-tab.active {
    background: var(--gradient-cosmic);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.filter-tab.active::before {
    opacity: 1;
    left: 0;
}

.filter-tab span {
    position: relative;
    z-index: 1;
}

/* 筛选器下拉菜单样式 */
.filter-dropdown {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-base) ease;
    font-weight: 600;
}

.filter-dropdown:hover,
.filter-dropdown:focus {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    outline: none;
}

/* 搜索框样式优化 */
.search-input-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    max-width: 350px;
    transition: all var(--transition-base) ease;
}

.search-input-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* 分类筛选器样式 */
.category-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: all var(--transition-base) ease;
    font-weight: 500;
}

.category-filter:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.category-filter.active {
    background: var(--gradient-cosmic);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

/* 响应式筛选器调整 */
@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        text-align: center;
    }
    
    .search-input-custom {
        max-width: 100%;
    }
    
    .category-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}
